<template>
	<manage-table
		:service="service"
		:default-record="defaultRecord"
		:options="options"
		ref="manageTable"
	/>
</template>

<script>
	import ManageTable from '@/components/ManageTable/ManageTable.vue';
	import ManageTableRouter from '@/components/ManageTable/ManageTableRouter';
	import { roleService } from '@/services/authorization/Role';

	export default {
		name: 'RoleTable',
		components: {
			ManageTable
		},
		mixins: [ManageTableRouter],
		data() {
			return {
				service: roleService,
				defaultRecord: {
					id: null,
					code: null,
					detail: null
				},
				options: [
					{
						label: '角色编码',
						value: 'code'
					},
					{
						label: '详细细节',
						value: 'detail'
					}
				]
			};
		}
	};
</script>
